const mongoose = require("mongoose");
const schema = new mongoose.Schema({
  title: { type: String },
  time: { type: String },
  content: { type: String, default: "这是默认内容" },
  categories: [{ type: mongoose.SchemaTypes.ObjectId, ref: "Category" }]
})

module.exports = mongoose.model("Article", schema)